package edu.kaist.cs408.pof.common.model;

import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Id;
import com.google.code.morphia.annotations.Indexed;
import org.bson.types.ObjectId;

/**
 * Created with IntelliJ IDEA.
 * User: duyleekun
 * Date: 5/9/12
 * Time: 2:46 AM
 * To change this template use File | Settings | File Templates.
 */
@Entity("User")
public abstract class UserVo {
	@Id
	ObjectId mid;

	public ObjectId getMid() {
		return mid;
	}

	@Indexed(unique = true)
	String username;

	String password;

	@Indexed
	int userType;
//	1 = Kaistian
//	2 = restaurantOwner

	protected UserVo(String username, String password) {
		this.username = username;
		this.password = password;
	}

	public UserVo() {
	}

	public String getUsername() {
		return username;
	}

	public String getPassword() {
		return password;
	}

	public int getUserType() {
		return userType;
	}
}
